﻿//-----------------------------------------------------------------------
// <copyright file="KeyValuePairExtensions.cs" company="OverrideThis">
//     Copyright (c) 2010 OverrideThis.com
// </copyright>
//-----------------------------------------------------------------------
namespace OverrideThis.ContactManager.WebSite.Helpers
{
    using System.Collections.Generic;
    using System.Web.Mvc;

    public static class KeyValuePairExtensions
    {
        public static SelectList ToSelectList(this KeyValuePair<string, string>[] items)
        {
            return new SelectList(items, "Key", "Value");
        }
    }
}